<?php

use think\migration\Migrator;
use think\migration\db\Column;

class AlterCouponProductAddDeletedAt extends Migrator
{
    public function up()
    {
        $this->table('coupon_product')
            ->addColumn('delete_time', 'timestamp', ['null' => true, 'comment'=>'删除时间'])
            ->update();
    }

    public function down()
    {
        $this->table('coupon_product')->removeColumn('delete_time');
    }
}
